/**
 * 
 */

/**
 * @author TYM
 *
 */

import java.util.Date;

public class TopRecord extends Record {
    public final static String TYPE = "Top";
    private String keyword;
    
    TopRecord(User initUser, Date initDate, String initKeyword) {
        user = initUser;
        date = initDate;
        keyword = initKeyword;
    }
    
    public String getKeyword() {return keyword;}
    public String toString(String deli) {
        return user.toString()+deli+date.toString()+deli
                +keyword.toString()+deli+TYPE;
    }
    public String toString() {
        return this.toString(DELI);
    }
    public String type() {return TYPE;}
}
